using UnityEngine;

namespace Geo.DizzyLab
{
    public class MoveController : MonoBehaviour
    {
        public Transform target;
        public Vector3 direction;
        public float speed;

        private void Update()
        {
            target.position += speed * Time.deltaTime * direction;
        }

        public void SetSpeed(float speed)
        {
            this.speed = speed;
        }
    }
    
}
